How To Remove 'Stranded' Products

After a simulation has been running for extended periods of time, Product may become 'Stranded' in the system. When products accumulate in Sym3, the memory increases and could lead to performance issues. Using the utility script in such a simulation is good practice to alleviate this risk.

 

This could happen when the simulation script isn't correct, or abnormal disconnection leads to products accumulating at one location, or being moved to a non-existing location.

 

This simulation script defines a product as 'Stranded' when

 

An example of utility script written to handle these bags is the 'Vacuum cleaner' code which can be found in 'Remove Stranded Product.js'.

This code example relies upon a User Property called 'IST' (In System Time) with a Data Type of Integer on Owner = Product.